package com.duobaoyu.dby.supply.biz.service.config;

import com.duobaoyu.dby.supply.common.biz.bo.config.PreWarningConfigGroupBO;
import com.duobaoyu.dby.supply.common.biz.bo.config.PreWarningConfigSelectBO;
import com.duobaoyu.dby.supply.common.biz.bo.config.PreWarningReminderConfigBO;
import com.duobaoyu.dby.supply.common.biz.dto.config.PreWarningConditionDTO;
import com.duobaoyu.dby.supply.common.biz.dto.config.PreWarningUpdateDTO;
import com.duobaoyu.dby.supply.db.entity.config.PreWarningConfig;

import java.util.List;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName PreWarningConfigService
 * @createTime 12:58:00 2023/10/16
 */
public interface PreWarningConfigService {
    boolean updatePreWarningConfig(PreWarningUpdateDTO preWarningUpdate);

    List<PreWarningConfigGroupBO> listPreWarningConfigGroup();

    List<PreWarningConfigSelectBO> getPreWarningSelectData(Integer scene);

    PreWarningConfig getPreWarningConfig(Long id);

    PreWarningReminderConfigBO getPreWarningReminderConfig(Integer groupCode);

	/**
	 * 获取预警查询条件
	 * @param id
	 * @return
	 */
	PreWarningConditionDTO getPreWarningCondition(Long id);
}
